<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>卡斯基车务</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../css/common.css"/>
    <link rel="stylesheet" href="../../../css/yewuyuan/banli/yewuyuan_banli_shouye.css"/>
    <script type="text/javascript" src="../../../lib/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="../../../lib/underscore.js"></script>
    <script type="text/javascript" src="../../../lib/iscroll.js"></script>
    <script type="text/javascript" src="../../../lib/global.js"></script>
    <script type="text/javascript" src="../../../js/zuzhang/banli/zuzhang_banli_shouye.js"></script>
</head>
<body>

<div class="title">
    <span class="font20 colorfff top_title bold">正在办理的业务</span>
    <span class="font20 colorfff right" id="sorting">排序</span>
</div>
<div class="mainContainer">
    <div class="sorting">
        <span class="dot"></span>
        <ul class="sorting_list font12 color796" id="sorting_list">
            <li data-value="1">按业务类型</li>
            <li data-value="2">按剩余时间</li>
            <li data-value="3">按开始时间</li>
        </ul>
    </div>
    <div class="search">
        <div class="search_input radius_small">
            <img src="../../../images/search.png"/>
            <input type="text" placeholder="搜索"/>
        </div>
    </div>
    <div class="order_list" id="being_process">
        <script type="text/template">
            <div>
                <ul>
                    <%for(var i in data){%>
                    <%var item = data[i];%>
                    <%var p1,p2;%>
                    <%if(item.situation === 0 || item.situation === 1){%>
                        <%if(item.state == 2){%>
                        <%  p1 = 'time_limit_pay'; %>
                        <%  p2 = '待付款';%>
                        <%}else{%>
                            <%if(item.remainTime <= 30){%>
                            <%  p1 = 'time_limit_half'; %>
                            <%}else if(item.remainTime > 30 && item.remainTime <= 60){%>
                            <%  p1 = 'time_limit_hour'; %>
                            <%}else{%>
                            <%  p1 = 'time_limit_normal';%>
                            <%}%>
                            <%  p2 = '进行中';%>
                        <%}%>
                    <%}else if(item.situation === -1){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '出问题';%>
                    <%}else if(item.situation === 2){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '请求援助';%>
                    <%}else if(item.situation === 3){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '超时';%>
                    <%}%>
                    <li class="<%=p1%>" data-p1="<%=p1%>" data-p2="<%=p2%>">
                        <div class="step_name">
                            <span class="font14 color4e4 step"><%=item.taskName%></span>
                            <span class="font12 colorff6 pick <%=p1%>"><%=p2%></span>
                        </div>
                        <div class="car_information">
                            <span class="font12 color9a9 car1"><%=item.carPlateNum%></span>
                            <span class="font12 color9a9 car2"><%=item.carColor%></span>
                            <span class="font12 color9a9 car3"><%=item.carBrand%></span>
                        </div>
                        <div class="car_information_1">
                            <span class="font12 color9a9">发动机号:</span>
                            <span class="font12 color9a9"><%=item.carEngineNum%></span>
                            <span class="font12 color9a9 car6">车架号:</span>
                            <span class="font12 color9a9"><%=item.carChassisNum%></span>
                            <%if(item.situation!=-1){%>
                            <span class="font12 color796 car4" data-time="<%=item.remainTime%>"></span>
                            <%}else{%>
                            <span class="font12 color796 car4">暂停计时</span>
                            <%}%>
                            <span class="font12 color796 car5"><%=item.situation!=-1?'总余:':''%></span>
                        </div>
                    </li>
                    <%}%>
                </ul>
            </div>
        </script>
    </div>
</div>
<div class="bottom_list font10">
    <a class="home colora29" href="../shouye/zuzhang_shouye.html">首页</a>
    <a class="process colorff6" href="../banli/zuzhang_banli_shouye.html">正在办理</a>
    <a class="mine colora29" href="../wode/zuzhang_wode.html">我的</a>
</div>
</body>
</html>
